﻿@model EagleProject.LinQDataContext.CommonSubscriberReg

@{
    ViewBag.Title = "ViewRegForm";
}

<h2>ViewRegForm</h2>

<fieldset>
    <legend>CommonSubscriberReg</legend>

    <img src ="@Url.Content("~/img/" + ViewBag.CardImage)"/>

    <h3>Card Type: @ViewBag.CardName</h3>

    @if (Model.CommencementDate == null)
    {   
        <h3>Exptected Register Fee: # @ViewBag.CardMoney</h3>
        <h3>Exptected Commencement Date: @ViewBag.CommencementDate</h3>
        <h3>Exptected Issue Date: @ViewBag.IssueDate</h3>
        <h3>Exptected Expired Date: @ViewBag.ExpiredDate</h3>
    }
    else
    {
        <h3>Register Fee: # @ViewBag.CardMoney</h3>
        <h3>Commencement Date: @Model.CommencementDate</h3>
        <h3>Issue Date: @Model.IssuedDate</h3>
        <h3>Expired Date: @Model.ExpiryDate</h3>
    }

    <div class="display-label">
        @Html.DisplayNameFor(model => model.UniqueCode)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UniqueCode)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.FirstName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FirstName)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.MiddleName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MiddleName)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Lastname)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Lastname)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Email)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Email)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.MaritalStatus)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MaritalStatus)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Occupation)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Occupation)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.DOB)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DOB)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Gender)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Gender)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.ContactAddress)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ContactAddress)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.BloodGroup)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.BloodGroup)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.PD_Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PD_Name)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.PD_ContactNumber)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PD_ContactNumber)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.NK_Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.NK_Name)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.NK_ContactNumber)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.NK_ContactNumber)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.NK_Address)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.NK_Address)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.CommencementDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CommencementDate)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.IssuedDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IssuedDate)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.ExpiryDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ExpiryDate)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Cost)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Cost)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.LGAOriginID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LocalGovArea.Name)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.LGACurrentID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LocalGovArea1.Name)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.CountryResidentID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Country.Name)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.CountryCityzenID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Country1.Name)
    </div>
</fieldset>
@if (Model.IssuedDate == null)
{
    using (Html.BeginForm("ViewRegForm", "Subscriber", FormMethod.Post))
    {
        @Html.HiddenFor(model => model.ID)

        <input type="submit" class="btn" name="Register" id="Register" value="Register" />
    }
}
<p>
    @Html.ActionLink("Edit", "EditRegForm", "Subscriber", new { id = Model.ID }, null) |
    @Html.ActionLink("Back to List", "ListRegForm", "Subscriber")
</p>
